var config = require('../../config');
var whost = config.whost;
var request = require('../../support').request2;

/**
 * 获取社区公告详情
 * @return {promise}
 */
exports.getNotice = function (context, noticeId) {
  return request(context, {
    url: whost + '/hk-api/api/json/group/getProjectNoticeDetail',
    data: {
      noticeId: noticeId
    }
  }).then(function (data) {
    return {
      notice: data.entity
    };
  });
};